/*
发运计划

*/
import httpRequest from '@/utils/httpRequest'

// 获取发运计划列表
export function getPlanList (data) {
  return httpRequest({
    url: '/transportPlan/plan/list',
    method: 'get',
    params: data
  })
}
// 创建发运计划列表
export function savePlan (data) {
  return httpRequest({
    url: '/transportPlan/plan/save',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 删除发运计划列表
export function delData (data) {
  return httpRequest({
    url: '/transportPlan/plan/delete',
    method: 'post',
    data: data
  })
}
// 获取发运计划列表
export function getNotFinishedList (data) {
  return httpRequest({
    url: '/transportPlan/plan/notFinishedlist',
    method: 'get',
    params: data
  })
}
// 获取地址列表
export function getAddressList (data) {
  return httpRequest({
    url: '/basis/planAddress/list',
    method: 'get',
    params: data
  })
}
// 获取业务关联货物
export function getProductList (data) {
  return httpRequest({
    url: '/businessProduct/productList',
    method: 'get',
    params: data
  })
}
// 更改计划状态
export function modifyState (data) {
  return httpRequest({
    url: '/transportPlan/plan/modifyState',
    method: 'post',
    params: data
  })
}
// 直接派车
export function planAddTrucks (data) {
  return httpRequest({
    url: '/transport/planAddTrucks',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 派给承运商
export function planAddCompanys (data) {
  return httpRequest({
    url: '/transportPlan/plan/planAddCompanys',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 执行明细
export function getExcuteDetailList (data) {
  return httpRequest({
    url: '/excuteDetail/list',
    method: 'get',
    params: data
  })
}
//查询承运商
export function getCompanyList(data){
    return httpRequest({
      url: '/transportPlan/plan/companyList',
      method: 'get',
      params: data
    })
}
//根据ID获取发运计划
export function queryById(data){
  return httpRequest({
    url: '/transportPlan/plan/queryById',
    method: 'get',
    params: data
  })
}
// 获取发运计划列表
export function getDefaultPrice (data) {
  return httpRequest({
    url: '/businessProduct/getDefaultPrice',
    method: 'get',
    params: data
  })
}
